home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / SourceCode / MiscKit1.7.1 / MiscKit / Examples / arch_tool / Makefile < prev   
Encoding:
Makefile  |  1994-10-25  |  814 b   |  32 lines

  1. #TARGET_ARCHS = i386 m68k
  2. #ARCHIFY = /usr/lib/arch_tool -archify_list
  3. #ARCH_FLAGS = `$(ARCHIFY) $(TARGET_ARCHS)`
  4. ARCH_FLAGS = 
  5. INSTALLDIR = /usr/lib
  6. #INSTALLDIR = /usr/local/lib
  7. TARGET_PGM = arch_tool
  8.  
  9. # If necessary, change these to reflect your installation
  10. CFLAGS = -O2 -pipe $(ARCH_FLAGS) -I../../Headers
  11. LDFLAGS = -ObjC -L/LocalDeveloper/Libraries $(ARCH_FLAGS) -L../../Source
  12. OBJS = arch_tool.o
  13.  
  14. $(TARGET_PGM): $(OBJS)
  15.     cc $(LDFLAGS) -o $@ $(OBJS) -lNeXT_s
  16.     strip $(TARGET_PGM)
  17.  
  18. all: $(TARGET_PGM)
  19.  
  20. debug:
  21.     cc -g -Wall -c arch_tool.c
  22.     cc -ObjC -L/LocalDeveloper/Libraries -o $(TARGET_PGM) $(OBJS) \
  23.         -lMiscKit -lNeXT_s
  24.  
  25. install: $(TARGET_PGM)
  26.     install -c $(TARGET_PGM) $(INSTALLDIR)
  27.     chown root.wheel $(INSTALLDIR)/$(TARGET_PGM)
  28.     chmod 755 $(INSTALLDIR)/$(TARGET_PGM)
  29.  
  30. clean:
  31.     rm -rf $(TARGET_PGM) *.o core
  32.